﻿@model Dictionary<string, List<MyTaskInfo>>
@{
    Layout = "/wwwroot/Skins/Admin_Layout/AdminLayout.cshtml";
}
<h2>我的任务</h2>
@{int idx = 1; }
<div class="panel-group" id="accordion">
    @foreach (var group in Model)
    {
        <div class="panel panel-info" style="width:40%;">
            <div class="panel-heading">
                <h4 class="panel-title">
                    <a data-toggle="collapse" href="#task@(idx)">@group.Key<span class="badge pull-right">@group.Value.Count</span></a>
                </h4>
            </div>
            <div id="task@(idx++)" class="panel-collapse collapse in">
                <ul class="list-group">
                    @foreach (var item in group.Value)
                    {
                        <li class="list-group-item"><a href="@item.Url">@item.Title</a></li>
                    }
                </ul>
            </div>
        </div>
    }
</div>
